package com.fengba.nanzhi.tabbar04.wz;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

import com.fengba.nanzhi.fengba.R;

public class MyWalletActivity extends AppCompatActivity {

    private Button DetailedBtn,ReceivablesBtn,ProfitBtn;
    private ImageButton fh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.wz_activity_my_wallet);
        //跳转我的账户
        DetailedBtn = findViewById(R.id.DetailedBtn);
        DetailedBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyWalletActivity.this,BillActivity.class);
                startActivity(intent);
            }
        });

        //跳转到我要收款
        ReceivablesBtn = findViewById(R.id.ReceivablesBtn);
        ReceivablesBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyWalletActivity.this,ReceivaBlesActivity.class);
                startActivity(intent);
            }
        });

        //跳转到我的
        ProfitBtn = findViewById(R.id.ProfitBtn);
        ProfitBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyWalletActivity.this,ProfitActivity.class);
                startActivity(intent);
            }
        });

        //关闭页面
        fh = findViewById(R.id.MyWalletfh);
        fh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
